package it.slothy.noveleditor.classes.actions;

import it.slothy.noveleditor.classes.elements.VNAction;
import it.slothy.noveleditor.classes.instance.Switch;

public class SetSwitchAction extends VNAction{
	
	//Switch di riferimento
	private Switch sw;
	
	//Valore da dare allo switch
	private boolean value;
	
	public SetSwitchAction(Switch s, boolean v) {
		super("SetSwitchAction", false, false);
		
		this.setSw(s);
		this.setValue(v);
	}

	public Switch getSw() {
		return sw;
	}

	public void setSw(Switch sw) {
		this.sw = sw;
	}

	public boolean isValue() {
		return value;
	}

	public void setValue(boolean value) {
		this.value = value;
	}

}
